Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Confirm folder delete - fixes issue #4446 - #4515

Merged
TomMalbran merged 8 commits into
adobe:masterfrom
gmp:confirmDelete
Aug 1, 2013
Merged

TomMalbran merged 8 commits into
adobe:masterfrom
gmp:confirmDelete

Conversation

@gmp

@gmp gmp commented Jul 19, 2013

Copy link
Copy Markdown
Contributor

Added confirm delete modal dialog when user deletes folder (not file) - issue #4446.

Passes lint and all tests. Have not added new tests (doesn't look like tests for file delete are in the DocumentCommandHandlers-test.js), but I'd love to add some!

Signed CLA.

Let me know if there's anything else I can do!

Comment thread src/nls/root/strings.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To show the file, use Are you sure you want to delete the folder <span class='dialog-filename'>{0}</span>? or similar. After using StringUtils.format, the folder name will replace {0} in the string.

@TomMalbran

Copy link
Copy Markdown
Contributor

This works great. Thanks for your work in this. I added a few comments around.

@gmp

gmp commented Jul 19, 2013

Copy link
Copy Markdown
Contributor Author

@TomMalbran Thanks for the quick feedback Tom! Made the requested changes.

Let me know if there's anything else.

Look forward to diving in deeper in the coming days!

@ghost ghost assigned TomMalbran Jul 19, 2013
@julianasuh

Copy link
Copy Markdown
Contributor

Assign to @TomMalbran

Comment thread src/document/DocumentCommandHandlers.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I prefer if this was a new string. If we ever change the name of the Command, this button should still be delete. Could you add the new string? Place it close to CANCEL and OK, as is the name of the button.

@TomMalbran

Copy link
Copy Markdown
Contributor

@g-palmer Thanks for the updates. I have one final comment. After that, we can merge, but since this adds new strings and we are past the UI is freeze. Will have to wait till the start of the next Sprint, around the 25th.

@gmp

gmp commented Jul 20, 2013

Copy link
Copy Markdown
Contributor Author

Made the change and added Strings.DELETE. I think this is what you were looking for.

Thanks again!

@TomMalbran

Copy link
Copy Markdown
Contributor

Yes. Thanks. Will have to wait for the next Sprint to merge as mentioned.

@gmp

gmp commented Jul 20, 2013

Copy link
Copy Markdown
Contributor Author

Yep. No worries. Glad it worked.

@TomMalbran

Copy link
Copy Markdown
Contributor

We are in Sprint 29, so we can merge this now :)

TomMalbran added a commit that referenced this pull request Aug 1, 2013
Confirm folder delete - fixes issue #4446
@TomMalbran
TomMalbran merged commit f04c489 into adobe:master Aug 1, 2013
@gmp

gmp commented Aug 3, 2013

Copy link
Copy Markdown
Contributor Author

Woohoo!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants